<template>
	<view class="page-content">
		<!-- 标题栏和状态栏占位符 -->
		<!-- <view class="titleNview-placing"></view>
		<view class="cert-top">
			<epTitBack style="width: 100%;" :fixed="false" left-icon="arrowleft" title="人才库" fontweight="bold" color="#fff"
			 fontsize="36" @clickLeft="back">
			</epTitBack>
		</view> -->
		<view class="page-body">
			<web-view :src="url"></web-view>
		</view>
	</view>
</template>

<script>
//接口
import {
  getManagerTypeCateGorys, //行业列表
  smsZcs, //获取验证码
  baiduOcrIdcards, //身份证图片识别
  setManagerSuppliers, //使用manager_id注册数据
  getVerifyTokens
} from "@/api/index"

	//import epTitBack from "@/components/ep-tit-fav/ep-tit-back.vue"
	import {
		mapGetters,
		mapActions
	} from "vuex";
	export default {
		components: {
			//epTitBack
		},
		data() {
			return {
				url: '',
        verify_token:''
			}
		},
		onLoad(option) {
			if (option.verify_token) {
				this.verify_token = option.verify_token;
				let successUrl = encodeURIComponent(window.location.origin+"/#/"+'pages/success/success?verify_token='+this.verify_token+'&manager_id='+option.manager_id+'&uid='+option.uid);
				let failedUrl = encodeURIComponent(window.location.origin+"/#/"+'pages/index/index?manager_id='+option.manager_id+'&uid='+option.uid);
				this.url = `https://brain.baidu.com/face/print/?token=${this.verify_token}&successUrl=${successUrl}&failedUrl=${failedUrl}`
			}
			this.getdata();
		},
		onNavigationBarButtonTap(e) {
			if (e.index == 0) {
				uni.switchTab({
					url: '',
				});
			}
		},
		methods: {
		  getdata(){

      },
			//返回
			back() {
				uni.navigateBack({
					delta: 1
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	.titleNview-placing {
		height: var(--status-bar-height);
		box-sizing: content-box;
		background: #fff;
		display: block;
		position: sticky;
		top: 0rpx;
		z-index: 9999;
		overflow: hidden
	}

	.user-box {
		display: flex;
		flex-direction: column;
		width: 100%;

		.box-img {
			width: 688rpx;
			height: 210rpx;
			margin-bottom: 30rpx;
		}

	}

	.page-content {
		width: 100vw;
		height: 100%;
		background: #fff;
		color: #666;
		padding: 30rpx;

		//内容
		.page-body {
			display: flex;
			margin-top: 200rpx;
			overflow: hidden;
		}

		//头部
		.page-top {
			display: flex;
			justify-content: space-between;
			align-items: center;
			margin-bottom: 30rpx;

			.t-logo {
				width: 239rpx;
				height: 40rpx;
			}

			.t-button {
				height: 50rpx;
				line-height: 50rpx;
				border-radius: 25rpx;
				padding: 0 20rpx;
				background: #fff;
				font-size: 26rpx;
			}

			.t-tit {
				font-size: 28rpx;
			}
		}
	}
</style>
